package com.jic.product.mapper;

import com.jic.product.entity.ProductGuarantee;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 商品保障表
 * @author : 
 * @email : 
 * @since : 2020-01-10 07:03:01
 * @version : v1.0.0
 */
@Mapper
public interface  ProductGuaranteeMapper {

    long insert(ProductGuarantee productGuarantee);

    long delete(Long id);

    long update(ProductGuarantee productGuarantee);

    ProductGuarantee queryByPrimaryKey(Long id);

    List<ProductGuarantee> query(ProductGuarantee productGuarantee);

    List<ProductGuarantee> queryPage(@Param("startIndex") int startIndex, @Param("limit") int limit, @Param("productGuarantee") ProductGuarantee productGuarantee);

    long queryPageCount(ProductGuarantee productGuarantee);
}